#include "TcpServer.hpp"
#include <functional>
#include <memory>


int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        perror("parameter error");
        exit(-1);
    }

    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<TcpServer> tsver = std::make_unique<TcpServer>(port);
    tsver->Init();
    tsver->Loop();

    return 0;
}
